package com.mininglamp.main;

import com.mininglamp.mode.Input;
import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;

/**
 * Created by zhouhuiyu on 17/9/10.
 */
public class TestOrgMain {

    public static void main(String[] args){

        KieServices ks = KieServices.Factory.get();
        KieContainer kContainer = ks.getKieClasspathContainer();

        KieSession kSession = kContainer.newKieSession("ksession-stateful");

        Input input=new Input("刘磊","男","18","湖南",1.69D,1500);

        kSession.insert(input);

        kSession.fireAllRules();

        kSession.dispose();

    }

}
